import request from "@/utils/request";
// 查询案件材料列表
export function listCaseFile(query) {
  return request({
    url: "/case/file/list",
    method: "get",
    params: query,
  });
}
// 新增案件材料
export function addCaseFile(data) {
  return request({
    url: `/case/file/upload`,
    method: "post",
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    data: data,
  });
}

// 删除案件材料
export function delCaseFile(ids) {
  return request({
    url: `/case/file/${ids}`,
    method: "delete",
  });
}
